<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/core" prefix="c"%>
<html:form action="/goToInstructionForecastDetail">
<table align="center" width="70%" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>		
		<td class="titulocolumna" align="center">
			<bean:message key="label.purchases.instructions.forecast.period"/>
		</td>
		<td class="titulocolumna" align="center">
			<bean:message key="label.purchases.instructions.forecast.customer"/>
		</td>
		<td class="titulocolumna" align="center">
			<bean:message key="label.purchases.instructions.forecast.item"/>
		</td>
	</tr>	
	<tr class="columnadatoPar">
		<td align="center"><bean:write name="PERIOD"/> </td>
		<td align="center"><bean:write name="CUSTOMER"/> </td>
		<td align="center"><bean:write name="ITEM"/> </td>
	</tr>	
</table>
<br />
<table align="center" width="80%" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">	
	<tr>		
		<td class="titulocolumna" align="center" width="7%">
				<bean:message key="label.plants.table.column.protection.month"/>
		</td>
		<td class="titulocolumna" align="center" width="7%">
				<bean:message key="label.purchases.instructions.forecast.totalsell"/>
		</td>
		<td class="titulocolumna" align="center" width="8%">		
			<bean:message key="label.purchases.instructions.forecast.closedsell"/>
		</td>
		<td class="titulocolumna" align="center" width="7%">
			<bean:message key="label.purchases.instructions.forecast.opensell"/>
		</td>
		<td class="titulocolumna" align="center" width="10%" nowrap="true" >
			<bean:message key="label.purchases.instructions.forecast.millingclosedsell"/>
		</td>
		<td class="titulocolumna" align="center" width="8%">
			<bean:message key="label.purchases.instructions.forecast.futurecontracts"/>
		</td>
		<td class="titulocolumna" align="center" width="8%">
			<bean:message key="label.purchases.instructions.forecast.coverage"/>
		</td>
	</tr>
<logic:present name="LIST_INSTRUCTION_FORECAST_DETAIL">
	<logic:iterate name="LIST_INSTRUCTION_FORECAST_DETAIL" id="instrucciones" indexId="int_i">
		<tr class="<%=((int_i.intValue()%2)==0?"columnadatoPar":"columnadatoNon")%>">			
			<td align="center">
				<bean:write name="instrucciones" property="month"/>
			</td>
			<td align="right">
				<bean:write name="instrucciones" property="total"/>
			</td>
			<td align="right">
				<bean:write name="instrucciones" property="contracted"/>
			</td>
			<td align="right">
				<bean:write name="instrucciones" property="nonContracted"/>
			</td>
			<td align="right">
				<bean:write name="instrucciones" property="cornContracted"/>
			</td>
			<td align="right">
				<bean:write name="instrucciones" property="instructionFutures"/>
			</td>
			<td align="right">
				<bean:write name="instrucciones" property="coverage"/>
			</td>
		</tr>
	</logic:iterate>
</logic:present>
</table>
<br/>
<table border="0" cellspacing="1"  bgcolor="#CCCCC0" width="500">
	<tr>
		<td colspan="4" align="center" class="columnadatoPar">							
			<html:button styleClass="boton" property="backButton" onclick="location.href = 'showInstructionPurchaseForecastQuery.do'"><bean:message key="label.common.back"/></html:button> 
		</td>
	</tr>
</table>
</html:form>